<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>

<body>

<button>请点击</button>

<script>
    const element = document.querySelector('button');
    element.addEventListener('click', function () {
        alert('平安喜乐 万事顺逐')
    })
</script>
</body>
</html>
